home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Control Panel Hide Printer.xpl
< prev
next >
Wrap
Text File
|
2000-11-13
|
2KB
|
65 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="3"
"UIPATH"="Appearance\Control Panel\Other Settings"
"NAME"="Visible pages in "Printers""
"LANGUAGE"="VBScript"
"VERSION"="1.02"
"OSVERSION"="11101"
"TEXT 1"="Show "Add printer" command"
"TEXT 2"="Show "Delete printer" command"
"TEXT 3"="Show "General" + "Details" tab"
"DESCRIPTION 1"="To show a page inside "Printers" , activate it. To hide it, deactivate it."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"=" "
sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
sV1="NoAddPrinter" 'all dword (1 = remove)
sV2="NoDeletePrinter"
sV3="NoPrinterTabs"
Sub Plugin_Initialize
i=RegReadValue(sPath & sV1)
if i<>1 then SetUIElement 1,true
i=RegReadValue(sPath & sV2)
if i<>1 then SetUIElement 2,true
i=RegReadValue(sPath & sV3)
if i<>1 then SetUIElement 3,true
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt(1,sPath,sV1)
Call WriteIt(2,sPath,sV2)
Call WriteIt(3,sPath,sV3)
Call IndicateSettingChange()
End Sub
Sub WriteIt(ITM,PAT,VAL)
b=GetUIElement(ITM)
if b=false then
call RegWriteValue(PAT & VAL,1,2)
else
chk=RegReadValue(PAT & VAL)
if IsEmpty(chk)=false then
Call RegDeleteValue(PAT & VAL)
end if
end if
end sub
Sub Plugin_Terminate
End Sub